inherited FNotaFiscalMercadoriaServico: TFNotaFiscalMercadoriaServico
  Left = 526
  Top = 228
  Caption = 'Nota Fiscal de Mercadoria e Servico'
  ClientHeight = 393
  ClientWidth = 508
  OldCreateOrder = True
  PixelsPerInch = 96
  TextHeight = 13
  inherited Panel1: TPanel
    Width = 508
    Height = 393
    inherited Panel2: TPanel
      Width = 506
      inherited BtnIncluir: TBitBtn
        Left = 5
        Width = 74
      end
      inherited BtnFechar: TBitBtn
        Left = 425
      end
    end
    inherited Panel3: TPanel
      Top = 322
      Width = 506
      inherited BtnConsuta: TBitBtn
        OnClick = BtnConsutaClick
      end
      inherited DBNavigator1: TDBNavigator
        DataSource = DSNotaFiscal
        Hints.Strings = ()
      end
      object btnGeraCR: TBitBtn
        Left = 392
        Top = 25
        Width = 111
        Height = 21
        Hint = 'Gera um t'#237'tulo no Contas a Receber para a nota selecionada!'
        Caption = 'Contas Receber'
        Enabled = False
        TabOrder = 2
        OnClick = btnGeraCRClick
        Glyph.Data = {
          36040000424D3604000000000000360000002800000010000000100000000100
          2000000000000004000000000000000000000000000000000000FF00FF00FF00
          FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
          FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
          FF00FF00FF00424242009C9C9C009C9C9C009C9C9C009C9C9C009C9C9C009C9C
          9C009C9C9C0042424200FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
          FF0042424200A5A5A500A5A5A500C6C6C600C6C6C60000CEFF0000316300C6C6
          C600C6C6C600A5A5A5009C9C9C00FF00FF00FF00FF00FF00FF00FF00FF00FF00
          FF00A5A5A500C6C6C600DEDEDE00DEDEDE0000CEFF0000CEFF0000CEFF000031
          6300CECECE00CECECE00A5A5A50042424200FF00FF00FF00FF00FF00FF004242
          4200A5A5A500CECECE00F7FFFF00003163000031630000CEFF000031630000CE
          FF00F7FFFF00CECECE00C6C6C6009C9C9C00FF00FF00FF00FF00FF00FF004242
          4200A5A5A500CECECE00F7FFFF00F7FFFF000031630000CEFF0000CEFF0000CE
          FF00F7FFFF00CECECE00C6C6C6009C9C9C00FF00FF00FF00FF00FF00FF004242
          4200A5A5A500CECECE00F7FFFF000031630000CEFF0000CEFF00003163000031
          6300F7FFFF00DEDEDE00C6C6C6009C9C9C00FF00FF00FF00FF00FF00FF00FF00
          FF009C9C9C00C6C6C600DEDEDE000031630000CEFF0000CEFF000031630000CE
          FF00DEDEDE00C6C6C600A5A5A50042424200FF00FF00FF00FF00FF00FF00FF00
          FF0042424200A5A5A500C6C6C600DEDEDE000031630000CEFF0000316300DEDE
          DE00C6C6C600A5A5A5009C9C9C00FF00FF00FF00FF00FF00FF00FF00FF00FF00
          FF00FF00FF009C9C9C00A5A5A500A5A5A500CECECE000031630000316300C6C6
          C600A5A5A5009C9C9C0042424200FF00FF00FF00FF00FF00FF00FF00FF00FF00
          FF00FF00FF00FF00FF00424242009C9C9C009C9C9C009C9C9C009C9C9C009C9C
          9C0042424200FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
          FF00FF00FF00FF00FF00FF00FF00FF00FF009C9C9C0042424200424242004242
          4200FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
          FF00FF00FF00FF00FF00FF00FF0042424200A5A5A500DEDEDE00DEDEDE009C9C
          9C00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
          FF00FF00FF00FF00FF00FF00FF009C9C9C00A5A5A500F7FFFF00F7FFFF00A5A5
          A50042424200FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
          FF00FF00FF00FF00FF00424242009C9C9C009C9C9C009C9C9C00A5A5A5004242
          42009C9C9C00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00
          FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00FF0042424200FF00
          FF0042424200FF00FF00FF00FF00FF00FF00FF00FF00FF00FF00}
      end
      object btnEmitirNotaFiscal: TBitBtn
        Left = 392
        Top = 4
        Width = 111
        Height = 21
        Hint = 'Abre a tela para a emiss'#227'o da NF'
        Caption = 'Emitir NF'
        TabOrder = 3
        OnClick = btnEmitirNotaFiscalClick
        Glyph.Data = {
          76010000424D7601000000000000760000002800000020000000100000000100
          04000000000000010000120B0000120B00001000000000000000000000000000
          800000800000008080008000000080008000808000007F7F7F00BFBFBF000000
          FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00300000000000
          0003377777777777777308888888888888807F33333333333337088888888888
          88807FFFFFFFFFFFFFF7000000000000000077777777777777770F8F8F8F8F8F
          8F807F333333333333F708F8F8F8F8F8F9F07F333333333337370F8F8F8F8F8F
          8F807FFFFFFFFFFFFFF7000000000000000077777777777777773330FFFFFFFF
          03333337F3FFFF3F7F333330F0000F0F03333337F77773737F333330FFFFFFFF
          03333337F3FF3FFF7F333330F00F000003333337F773777773333330FFFF0FF0
          33333337F3F37F3733333330F08F0F0333333337F7337F7333333330FFFF0033
          33333337FFFF7733333333300000033333333337777773333333}
        NumGlyphs = 2
      end
      object btnCancelaNF: TBitBtn
        Left = 392
        Top = 46
        Width = 111
        Height = 21
        Hint = 'Gera um t'#237'tulo no Contas a Receber para a nota selecionada!'
        Caption = 'Cancelar NF'
        Enabled = False
        TabOrder = 4
        OnClick = btnCancelaNFClick
        Glyph.Data = {
          76010000424D7601000000000000760000002800000020000000100000000100
          0400000000000001000000000000000000001000000000000000000000000000
          8000008000000080800080000000800080008080000080808000C0C0C0000000
          FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00333333333333
          3333333333FFFFF3333333333999993333333333F77777FFF333333999999999
          33333337777FF377FF3333993370739993333377FF373F377FF3399993000339
          993337777F777F3377F3393999707333993337F77737333337FF993399933333
          399377F3777FF333377F993339903333399377F33737FF33377F993333707333
          399377F333377FF3377F993333101933399377F333777FFF377F993333000993
          399377FF3377737FF7733993330009993933373FF3777377F7F3399933000399
          99333773FF777F777733339993707339933333773FF7FFF77333333999999999
          3333333777333777333333333999993333333333377777333333}
        NumGlyphs = 2
      end
      object BitBtn2: TBitBtn
        Left = 277
        Top = 6
        Width = 111
        Height = 21
        Caption = 'NF-e'
        TabOrder = 5
        OnClick = BitBtn2Click
        Glyph.Data = {
          B6030000424DB603000000000000360000002800000012000000100000000100
          18000000000080030000C40E0000C40E00000000000000000000FAFEFFF3F7FC
          F1F4F8F6F8F9F5F4F6F8F6F6FEF8F9FCF6F7FDF5F6FEF6F7FEF4FAFEF4FAFFF8
          FFFFFBFFFFFAFFF6F1FAFEFBFDFCFCFC0000E8EEF3F8FFFFF8FDFFF8FCFDFFFF
          FFFCFAFAF2EDEEFFFCFBF7F1F2ECE4E5F5ECEFFFFDFFFDF5FCF1E9F0F6EEF8FF
          FCFFFEFBFDFCFCFC0000F2FEFFEDF9FBF0F9FCDAE2E2B4B9B8BABDBBE3E1E0F8
          F5F1D7D3D2BCB7B6C9C4C3EFE9EAFDF6F9FFFAFCFFFDFFFEFBFDFEFBFDFCFCFC
          0000EFFCFEF1FFFEBFCBCBABB6B4D6DDDAD0D4CFA5A7A1A4A49EC7C4BFB5B2AD
          C4C0BBE1DCD9F3EEEBFFFFFEFFFFFEF2EDEEFEFCFCFCFCFC0000F0FFFFE0EEED
          D2DFDDCBD6D3D6DDD8F0F7F0FEFFF8F1F2E8A6A69AA5A398B9B5AACAC5BCCFCA
          C1E1DED6FCF6EFFFFDF8FEFCFBFCFCFC0000F1FFFEF3FFFFC7D2CFB4BEB8F3FB
          F4FCFFF8CDCFC3C7C6B8BCB9ABA7A495A29D8EB5B0A1C2BCAFC4BEB1DED8CDFF
          FFF7FEFDF9FCFCFC0000F3FEFCF6FFFEDAE1DEC0C6C1D6D9D0F4F3E9FBFAECFF
          FBECF0E9D8D5CDBCB6AC9BBCB2A1D2C8B7C7BDACCAC0AFF0E8DBFFFDF9FCFCFC
          0000F1F6F4FBFFFEE0E4DFC9CBC5F3F0E8F4F0E5C9C1B4B9B1A0BCB09ECABEAC
          B7A997AFA18FC9BBA9C8BAA8CCBEACF1E6D8FFFCF9FCFCFC0000FDFBFAF8F6F5
          FCF9F5E1DED6C4BBB2E4DBCEFBEEE0D7C8B8E7D7C6D5C3B2E2CEBCBBA795B29E
          8CD7C3B1D4C0AFD8C8BBF3EEEBFEFEFE0000FFFFFEE6E1DEE9E2DFBDB3ACBCB1
          A9B8A9A0E1D1C4CDBDADC5B0A1D2BEADFFEDDCC8B4A3B9A292C1AD9CC8B3A4C6
          B6AAD8D3D0EBEBEB0000FFFEFED7CECBBDB1AFD0C4BEC9BCB4B7A89FC6B6AAF2
          E1D4DFC9BDE7D2C3FFFAEBC8B5A6C0AA9EBFAC9FCAB7AABAABA2D6D1CEEBEBEB
          0000F2EAEAFEF4F4E0D4D2BDB2AEBDAFA9CABDB5BEAFA6B4A498E0CEC3DECCC1
          F0DED3C2B2A6B6A59CBDAEA5C8B9B0C1B5AFF0ECEBFCFCFC0000FFFFFEE5E0DF
          F3ECE9C0BAB5FAF0E9AAA198B2A79FAAA096B9ADA3BEB4AACBC0B8CFC6BDB3A9
          A2C3BBB4D1C8C4E8E3E0FEFCFBFFFFFF0000F1EFEEF2F0EFFDF9F8C7C4C0F2EE
          E9D0CAC3D2CCC5B7B2A9B1ABA4A9A39C9A978FBBB8B3A7A4A0C4C3BFCCCDCBEA
          EAEAFAFAFAFEFEFE0000FDFFFFF0F3F1DCDDDBF4F5F1E9E9E3D9D9D3C1C1BBD5
          D6CDFDFDF7E4E6E0C7CBC6DEE3E1D9DEDDF1F7F6F5FDFDF8FFFFF6F8F8FEFEFE
          0000EDF2F1F5FAF9F6F9F7F5F9F4FAFBF7FFFFFBFFFFFBF7F9F3F8FCF6F8FFF8
          F9FEFCF8FFFEF3FBFBECF8F8F4FFFFEEF8F8F6FAFBFFFFFF0000}
      end
    end
    object PageControl: TPageControl
      Left = 1
      Top = 36
      Width = 506
      Height = 286
      ActivePage = TabAbertura
      Align = alClient
      TabOrder = 2
      OnChange = PageControlChange
      object TabAbertura: TTabSheet
        Caption = 'Abertura'
        object Label1: TLabel
          Left = 2
          Top = 2
          Width = 33
          Height = 13
          Caption = 'C'#243'digo'
        end
        object DBTCodigo: TDBText
          Left = 2
          Top = 19
          Width = 65
          Height = 13
          DataField = 'NF_CODIGO'
          DataSource = DSNotaFiscal
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clRed
          Font.Height = -11
          Font.Name = 'MS Sans Serif'
          Font.Style = []
          ParentFont = False
        end
        object Label2: TLabel
          Left = 400
          Top = 2
          Width = 65
          Height = 13
          Caption = 'Data Emiss'#227'o'
        end
        object Label7: TLabel
          Left = 2
          Top = 112
          Width = 41
          Height = 13
          Caption = 'Empresa'
        end
        object Label8: TLabel
          Left = 416
          Top = 112
          Width = 63
          Height = 13
          Caption = 'N'#176' do Pedido'
        end
        object Label9: TLabel
          Left = 2
          Top = 160
          Width = 32
          Height = 13
          Caption = 'Cliente'
        end
        object LBCliente: TLabel
          Left = 2
          Top = 176
          Width = 492
          Height = 13
          AutoSize = False
          Caption = 'LBCliente'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clWindowText
          Font.Height = -11
          Font.Name = 'MS Sans Serif'
          Font.Style = [fsBold]
          ParentFont = False
        end
        object Label11: TLabel
          Left = 2
          Top = 200
          Width = 33
          Height = 13
          Caption = 'Cidade'
        end
        object LBCidade: TLabel
          Left = 2
          Top = 216
          Width = 161
          Height = 13
          AutoSize = False
          Caption = 'LBCidade'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clWindowText
          Font.Height = -11
          Font.Name = 'MS Sans Serif'
          Font.Style = [fsBold]
          ParentFont = False
        end
        object Label10: TLabel
          Left = 169
          Top = 200
          Width = 24
          Height = 13
          Caption = 'Valor'
        end
        object LBValor: TLabel
          Left = 169
          Top = 216
          Width = 78
          Height = 13
          AutoSize = False
          Caption = 'LBValor'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clWindowText
          Font.Height = -11
          Font.Name = 'MS Sans Serif'
          Font.Style = [fsBold]
          ParentFont = False
        end
        object Label14: TLabel
          Left = 302
          Top = 200
          Width = 82
          Height = 13
          Caption = 'Data Vencimento'
        end
        object Label48: TLabel
          Left = 416
          Top = 53
          Width = 28
          Height = 13
          Caption = 'CFOP'
        end
        object dbtFormaPagto: TDBText
          Left = 416
          Top = 216
          Width = 78
          Height = 17
          Alignment = taCenter
          DataField = 'NF_FORMAPAGAMENTO'
          DataSource = DSNotaFiscal
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clWindowText
          Font.Height = -11
          Font.Name = 'MS Sans Serif'
          Font.Style = [fsBold]
          ParentFont = False
        end
        object Label49: TLabel
          Left = 416
          Top = 200
          Width = 78
          Height = 13
          Caption = 'Forma de Pagto:'
        end
        object Label50: TLabel
          Left = 253
          Top = 200
          Width = 41
          Height = 13
          Caption = 'Qtd Dias'
        end
        object DBRGSituacao: TDBRadioGroup
          Left = 81
          Top = -2
          Width = 301
          Height = 46
          Caption = '  Situa'#231#227'o  '
          Columns = 3
          Ctl3D = False
          DataField = 'NF_SITUACAO'
          DataSource = DSNotaFiscal
          Items.Strings = (
            'N'#227'o Emitida'
            'Emitida'
            'Cancelada')
          ParentCtl3D = False
          TabOrder = 0
          Values.Strings = (
            '0'
            '1'
            '2')
        end
        object DBDTEmissao: TDBDateEdit
          Left = 400
          Top = 19
          Width = 97
          Height = 21
          DataField = 'NF_DATAEMISSAO'
          DataSource = DSNotaFiscal
          Ctl3D = False
          NumGlyphs = 2
          ParentCtl3D = False
          TabOrder = 1
        end
        object GroupNotaFiscal: TGroupBox
          Left = 2
          Top = 48
          Width = 201
          Height = 57
          Caption = '  Nota Fiscal  '
          Ctl3D = False
          ParentCtl3D = False
          TabOrder = 2
          object Label3: TLabel
            Left = 11
            Top = 22
            Width = 37
            Height = 13
            Caption = 'N'#250'mero'
          end
          object Label4: TLabel
            Left = 123
            Top = 22
            Width = 24
            Height = 13
            Caption = 'S'#233'rie'
          end
          object DBENumeroNotaFiscal: TDBEdit
            Left = 56
            Top = 24
            Width = 63
            Height = 19
            DataField = 'NF_NUMERONF'
            DataSource = DSNotaFiscal
            TabOrder = 0
          end
          object DBESerieNotaFiscal: TDBEdit
            Left = 152
            Top = 24
            Width = 39
            Height = 19
            DataField = 'NF_SERIENF'
            DataSource = DSNotaFiscal
            TabOrder = 1
          end
        end
        object GroupSelo: TGroupBox
          Left = 205
          Top = 48
          Width = 198
          Height = 57
          Caption = '  S'#234'lo  '
          Ctl3D = False
          ParentCtl3D = False
          TabOrder = 3
          object Label5: TLabel
            Left = 11
            Top = 22
            Width = 37
            Height = 13
            Caption = 'N'#250'mero'
          end
          object Label6: TLabel
            Left = 123
            Top = 22
            Width = 24
            Height = 13
            Caption = 'S'#233'rie'
          end
          object DBENumeroSelo: TDBEdit
            Left = 56
            Top = 24
            Width = 63
            Height = 19
            DataField = 'NF_NUMEROSELO'
            DataSource = DSNotaFiscal
            TabOrder = 0
          end
          object DBESerieSelo: TDBEdit
            Left = 152
            Top = 24
            Width = 39
            Height = 19
            DataField = 'NF_SERIESELO'
            DataSource = DSNotaFiscal
            TabOrder = 1
          end
        end
        object DBLEmpresa: TDBLookupComboBox
          Left = 2
          Top = 128
          Width = 234
          Height = 19
          Ctl3D = False
          KeyField = 'EMP_CODIGO'
          ListField = 'EMP_RAZAO'
          ListSource = DSEmpresa
          ParentCtl3D = False
          TabOrder = 5
          OnKeyDown = DBLEmpresaKeyDown
        end
        object DBENumeroPedido: TDBEdit
          Left = 415
          Top = 128
          Width = 69
          Height = 19
          Ctl3D = False
          DataField = 'NF_PEDIDOVENDA'
          DataSource = DSNotaFiscal
          ParentCtl3D = False
          TabOrder = 7
          OnExit = DBENumeroPedidoExit
        end
        object BitConsultaPedido: TBitBtn
          Left = 243
          Top = 112
          Width = 159
          Height = 37
          Caption = 'Consulta Pedido'
          Enabled = False
          TabOrder = 6
          OnClick = BitConsultaPedidoClick
          Glyph.Data = {
            76010000424D7601000000000000760000002800000020000000100000000100
            04000000000000010000130B0000130B00001000000000000000000000000000
            800000800000008080008000000080008000808000007F7F7F00BFBFBF000000
            FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00333333333333
            33033333333333333F7F3333333333333000333333333333F777333333333333
            000333333333333F777333333333333000333333333333F77733333333333300
            033333333FFF3F777333333700073B703333333F7773F77733333307777700B3
            33333377333777733333307F8F8F7033333337F333F337F3333377F8F9F8F773
            3333373337F3373F3333078F898F870333337F33F7FFF37F333307F99999F703
            33337F377777337F3333078F898F8703333373F337F33373333377F8F9F8F773
            333337F3373337F33333307F8F8F70333333373FF333F7333333330777770333
            333333773FF77333333333370007333333333333777333333333}
          NumGlyphs = 2
        end
        object DBDTVencimento: TDBDateEdit
          Left = 301
          Top = 216
          Width = 97
          Height = 21
          DataField = 'NF_DATAVENCIMENTO'
          DataSource = DSNotaFiscal
          Ctl3D = False
          NumGlyphs = 2
          ParentCtl3D = False
          TabOrder = 9
          OnExit = DBDTVencimentoExit
        end
        object dblCfop: TDBLookupComboBox
          Left = 416
          Top = 69
          Width = 73
          Height = 19
          Ctl3D = False
          DataField = 'NF_CFOPNF'
          DataSource = DSNotaFiscal
          KeyField = 'CFOP_CODIGO'
          ListField = 'CFOP_CODIGOFISCAL'
          ListSource = dsCFOP
          ParentCtl3D = False
          TabOrder = 4
          OnExit = dblCfopExit
        end
        object EdQtdDias: TEdit
          Left = 254
          Top = 216
          Width = 41
          Height = 19
          Ctl3D = False
          ParentCtl3D = False
          TabOrder = 8
          OnExit = EdQtdDiasExit
        end
        object DBETipoVenda: TDBEdit
          Left = 412
          Top = 160
          Width = 69
          Height = 19
          Ctl3D = False
          DataField = 'NF_TIPOVENDA'
          DataSource = DSNotaFiscal
          ParentCtl3D = False
          TabOrder = 10
          Visible = False
          OnExit = DBENumeroPedidoExit
        end
      end
      object tabProduto: TTabSheet
        Caption = 'Produto'
        ImageIndex = 1
        object Label21: TLabel
          Left = 0
          Top = 0
          Width = 33
          Height = 13
          Caption = 'Codigo'
        end
        object Label22: TLabel
          Left = 56
          Top = 0
          Width = 48
          Height = 13
          Caption = 'Descri'#231#227'o'
        end
        object Label23: TLabel
          Left = 193
          Top = 0
          Width = 39
          Height = 13
          Caption = 'Sit. Trib.'
        end
        object Label24: TLabel
          Left = 236
          Top = 0
          Width = 25
          Height = 13
          Caption = 'Unid.'
        end
        object Label25: TLabel
          Left = 278
          Top = 0
          Width = 32
          Height = 13
          Caption = 'Quant.'
        end
        object Label26: TLabel
          Left = 320
          Top = 0
          Width = 49
          Height = 13
          Caption = 'Valor Unit.'
        end
        object Label27: TLabel
          Left = 387
          Top = 0
          Width = 51
          Height = 13
          Caption = 'Valor Total'
        end
        object Label12: TLabel
          Left = 453
          Top = 0
          Width = 26
          Height = 13
          Caption = 'ICMS'
        end
        object DBGrid1: TDBGrid
          Left = 1
          Top = 70
          Width = 496
          Height = 179
          DataSource = DSItensNotaFiscal
          Font.Charset = ANSI_CHARSET
          Font.Color = clWindowText
          Font.Height = -11
          Font.Name = 'Times New Roman'
          Font.Style = []
          Options = [dgEditing, dgTitles, dgIndicator, dgColumnResize, dgColLines, dgTabs, dgConfirmDelete, dgCancelOnExit]
          ParentFont = False
          TabOrder = 7
          TitleFont.Charset = ANSI_CHARSET
          TitleFont.Color = clWindowText
          TitleFont.Height = -11
          TitleFont.Name = 'Times New Roman'
          TitleFont.Style = [fsBold]
          OnCellClick = DBGrid1CellClick
          Columns = <
            item
              Alignment = taCenter
              Expanded = False
              FieldName = 'CODIGO'
              Title.Alignment = taCenter
              Title.Caption = 'Codigo'
              Width = 42
              Visible = True
            end
            item
              Expanded = False
              FieldName = 'DESCRICAO'
              Title.Alignment = taCenter
              Title.Caption = 'Descri'#231#227'o'
              Width = 136
              Visible = True
            end
            item
              Alignment = taCenter
              Expanded = False
              FieldName = 'SIT_TRIB'
              Title.Alignment = taCenter
              Title.Caption = 'Sit Trib'
              Width = 41
              Visible = True
            end
            item
              Expanded = False
              FieldName = 'UNIDADE'
              Title.Alignment = taCenter
              Title.Caption = 'Unid.'
              Width = 41
              Visible = True
            end
            item
              Alignment = taCenter
              Expanded = False
              FieldName = 'QTD'
              Title.Alignment = taCenter
              Title.Caption = 'Qtd'
              Width = 41
              Visible = True
            end
            item
              Expanded = False
              FieldName = 'VALOR_UNI'
              Title.Alignment = taCenter
              Title.Caption = 'Valor Unit.'
              Width = 65
              Visible = True
            end
            item
              Expanded = False
              FieldName = 'VALOR_TOT'
              Title.Alignment = taCenter
              Title.Caption = 'Valor Total'
              Width = 65
              Visible = True
            end
            item
              Expanded = False
              FieldName = 'ICMS'
              Title.Alignment = taCenter
              Width = 41
              Visible = True
            end>
        end
        object PButIncluir: TButton
          Left = 0
          Top = 44
          Width = 75
          Height = 20
          Caption = 'Incluir'
          TabOrder = 2
          OnClick = PButIncluirClick
        end
        object PButEditar: TButton
          Left = 80
          Top = 44
          Width = 75
          Height = 20
          Caption = 'Editar'
          TabOrder = 3
          OnClick = PButEditarClick
        end
        object PButExcluir: TButton
          Left = 160
          Top = 44
          Width = 75
          Height = 20
          Caption = 'Excluir'
          TabOrder = 4
          OnClick = PButExcluirClick
        end
        object PButSalvar: TButton
          Left = 240
          Top = 44
          Width = 75
          Height = 20
          Caption = 'Salvar'
          Enabled = False
          TabOrder = 5
          OnClick = PButSalvarClick
        end
        object PButCancelar: TButton
          Left = 320
          Top = 44
          Width = 75
          Height = 20
          Caption = 'Cancelar'
          Enabled = False
          TabOrder = 6
          OnClick = PButCancelarClick
        end
        object EdCodigo: TEdit
          Left = 0
          Top = 16
          Width = 55
          Height = 19
          Ctl3D = False
          ParentCtl3D = False
          TabOrder = 0
        end
        object DBLDescricao: TDBLookupComboBox
          Left = 58
          Top = 16
          Width = 135
          Height = 19
          Ctl3D = False
          DataField = 'ITENSNF_PRODUTO'
          DataSource = dsItens
          KeyField = 'PROD_CODIGO'
          ListField = 'PROD_DESCRICAOSAI'
          ListSource = DSListaProduto
          ParentCtl3D = False
          TabOrder = 1
          OnExit = DBLDescricaoExit
          OnKeyDown = DBLEmpresaKeyDown
        end
        object EdSitTrib: TDBEdit
          Left = 195
          Top = 16
          Width = 35
          Height = 19
          Ctl3D = False
          DataField = 'ITENSNF_SITUACAOTRIBUTARIA'
          DataSource = dsItens
          ParentCtl3D = False
          TabOrder = 8
        end
        object EdQuant: TDBEdit
          Left = 278
          Top = 16
          Width = 33
          Height = 19
          Ctl3D = False
          DataField = 'ITENSNF_QUANTIDADE'
          DataSource = dsItens
          ParentCtl3D = False
          TabOrder = 9
          OnExit = EdQuantExit
        end
        object EdValorUnit: TDBEdit
          Left = 320
          Top = 16
          Width = 61
          Height = 19
          Ctl3D = False
          DataField = 'ITENSNF_VALORUNITARIO'
          DataSource = dsItens
          ParentCtl3D = False
          TabOrder = 10
        end
        object EdValorTotal: TDBEdit
          Left = 387
          Top = 16
          Width = 59
          Height = 19
          Ctl3D = False
          DataField = 'ITENSNF_VALORTOTAL'
          DataSource = dsItens
          ParentCtl3D = False
          TabOrder = 11
        end
        object EdICMS: TDBEdit
          Left = 452
          Top = 16
          Width = 43
          Height = 19
          Ctl3D = False
          DataField = 'ITENSNF_PERCICMS'
          DataSource = dsItens
          ParentCtl3D = False
          TabOrder = 12
        end
        object edUnidade: TEdit
          Left = 236
          Top = 16
          Width = 36
          Height = 21
          TabOrder = 13
        end
      end
      object tabServico: TTabSheet
        Caption = 'Servi'#231'o'
        ImageIndex = 2
        object Label40: TLabel
          Left = 0
          Top = 0
          Width = 33
          Height = 13
          Caption = 'Codigo'
        end
        object Label41: TLabel
          Left = 56
          Top = 0
          Width = 48
          Height = 13
          Caption = 'Descri'#231#227'o'
        end
        object Label42: TLabel
          Left = 377
          Top = 0
          Width = 39
          Height = 13
          Caption = 'Sit. Trib.'
        end
        object Label43: TLabel
          Left = 427
          Top = 0
          Width = 51
          Height = 13
          Caption = 'Valor Total'
        end
        object lbCodigoServico: TDBText
          Left = 8
          Top = 96
          Width = 65
          Height = 17
          DataField = 'ITENSNF_PRODUTO'
          DataSource = dsItens
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clWindowText
          Font.Height = -11
          Font.Name = 'MS Sans Serif'
          Font.Style = [fsBold]
          ParentFont = False
        end
        object lbSitTribServico: TDBText
          Left = 328
          Top = 96
          Width = 65
          Height = 17
          Alignment = taCenter
          DataField = 'ITENSNF_SITUACAOTRIBUTARIA'
          DataSource = dsItens
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clWindowText
          Font.Height = -11
          Font.Name = 'MS Sans Serif'
          Font.Style = [fsBold]
          ParentFont = False
        end
        object lbValorServico: TDBText
          Left = 412
          Top = 96
          Width = 81
          Height = 17
          Alignment = taCenter
          DataField = 'ITENSNF_VALORTOTAL'
          DataSource = dsItens
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clWindowText
          Font.Height = -11
          Font.Name = 'MS Sans Serif'
          Font.Style = [fsBold]
          ParentFont = False
        end
        object Label44: TLabel
          Left = 8
          Top = 80
          Width = 33
          Height = 13
          Caption = 'C'#243'digo'
        end
        object Label45: TLabel
          Left = 80
          Top = 80
          Width = 102
          Height = 13
          Caption = 'Descri'#231#227'o do Servi'#231'o'
        end
        object Label46: TLabel
          Left = 328
          Top = 80
          Width = 39
          Height = 13
          Caption = 'Sit. Trib.'
        end
        object Label47: TLabel
          Left = 416
          Top = 80
          Width = 78
          Height = 13
          Caption = 'Valor do Servi'#231'o'
        end
        object edCodigoServico: TEdit
          Left = 0
          Top = 16
          Width = 55
          Height = 19
          Ctl3D = False
          Enabled = False
          ParentCtl3D = False
          TabOrder = 0
        end
        object dblDescricaoServico: TDBLookupComboBox
          Left = 58
          Top = 16
          Width = 311
          Height = 19
          Ctl3D = False
          DataField = 'ITENSNF_PRODUTO'
          DataSource = dsItens
          KeyField = 'PROD_CODIGO'
          ListField = 'PROD_DESCRICAOSAI'
          ListSource = DSListaProduto
          ParentCtl3D = False
          TabOrder = 1
          OnExit = dblDescricaoServicoExit
          OnKeyDown = DBLEmpresaKeyDown
        end
        object edSituacaoTribServico: TDBEdit
          Left = 379
          Top = 16
          Width = 35
          Height = 19
          Ctl3D = False
          DataField = 'ITENSNF_SITUACAOTRIBUTARIA'
          DataSource = dsItens
          ParentCtl3D = False
          TabOrder = 2
        end
        object btnIncluirServico: TButton
          Left = 0
          Top = 44
          Width = 75
          Height = 20
          Caption = 'Incluir'
          TabOrder = 4
          OnClick = btnIncluirServicoClick
        end
        object btnEditarServico: TButton
          Left = 80
          Top = 44
          Width = 75
          Height = 20
          Caption = 'Editar'
          TabOrder = 5
          OnClick = btnEditarServicoClick
        end
        object btnExcluirServico: TButton
          Left = 160
          Top = 44
          Width = 75
          Height = 20
          Caption = 'Excluir'
          TabOrder = 6
          OnClick = btnExcluirServicoClick
        end
        object btnSalvarServico: TButton
          Left = 240
          Top = 44
          Width = 75
          Height = 20
          Caption = 'Salvar'
          Enabled = False
          TabOrder = 7
          OnClick = PButSalvarClick
        end
        object btnCancelarServico: TButton
          Left = 320
          Top = 44
          Width = 75
          Height = 20
          Caption = 'Cancelar'
          Enabled = False
          TabOrder = 8
          OnClick = PButCancelarClick
        end
        object dbmDescricaoServico: TDBMemo
          Left = 80
          Top = 96
          Width = 235
          Height = 95
          Ctl3D = False
          DataField = 'ITENSNF_SERVICO2'
          DataSource = dsItens
          ParentCtl3D = False
          TabOrder = 9
        end
        object edValorServico: TRxDBCalcEdit
          Left = 424
          Top = 16
          Width = 59
          Height = 21
          DataField = 'ITENSNF_VALORTOTAL'
          DataSource = dsItens
          Ctl3D = False
          DisplayFormat = '0.,00'
          ButtonWidth = 0
          NumGlyphs = 2
          ParentCtl3D = False
          TabOrder = 3
        end
      end
      object tabValores: TTabSheet
        Caption = 'Valores'
        ImageIndex = 3
        object Label13: TLabel
          Left = 301
          Top = 16
          Width = 91
          Height = 13
          Caption = 'Base Calculo ICMS'
          FocusControl = BitConsultaPedido
        end
        object Label28: TLabel
          Left = 8
          Top = 16
          Width = 112
          Height = 13
          Caption = 'Base de Calculo do ISS'
        end
        object Label29: TLabel
          Left = 62
          Top = 40
          Width = 58
          Height = 13
          Caption = 'Aliquota ISS'
        end
        object Label30: TLabel
          Left = 76
          Top = 64
          Width = 44
          Height = 13
          Caption = 'Valor ISS'
        end
        object Label31: TLabel
          Left = 32
          Top = 88
          Width = 88
          Height = 13
          Caption = 'Total dos Servi'#231'os'
        end
        object Label32: TLabel
          Left = 339
          Top = 40
          Width = 53
          Height = 13
          Caption = 'Valor ICMS'
        end
        object Label33: TLabel
          Left = 240
          Top = 64
          Width = 152
          Height = 13
          Caption = 'Base Calculo ICMS Substitui'#231#227'o'
          FocusControl = BitConsultaPedido
        end
        object Label34: TLabel
          Left = 278
          Top = 88
          Width = 114
          Height = 13
          Caption = 'Valor ICMS Substitui'#231#227'o'
          FocusControl = BitConsultaPedido
        end
        object Label35: TLabel
          Left = 280
          Top = 112
          Width = 112
          Height = 13
          Caption = 'Valor total dos Produtos'
        end
        object Label36: TLabel
          Left = 54
          Top = 128
          Width = 66
          Height = 13
          Caption = 'Valor do Frete'
        end
        object Label37: TLabel
          Left = 44
          Top = 152
          Width = 76
          Height = 13
          Caption = 'Valor do Seguro'
        end
        object Label39: TLabel
          Left = 80
          Top = 176
          Width = 40
          Height = 13
          Caption = 'Valor IPI'
        end
        object Label38: TLabel
          Left = 288
          Top = 240
          Width = 95
          Height = 13
          Caption = 'Valor da Nota Fiscal'
        end
        object edBaseICMS: TRxDBCalcEdit
          Left = 400
          Top = 8
          Width = 89
          Height = 21
          DataField = 'NF_BASEICMSNORM'
          DataSource = DSNotaFiscal
          Ctl3D = False
          DisplayFormat = '0.,00'
          NumGlyphs = 2
          ParentCtl3D = False
          TabOrder = 4
          OnExit = edBaseICMSExit
        end
        object edBaseIss: TRxDBCalcEdit
          Left = 128
          Top = 8
          Width = 89
          Height = 21
          DataField = 'NF_VALORSERVICO'
          DataSource = DSNotaFiscal
          Ctl3D = False
          DisplayFormat = '0.,00'
          NumGlyphs = 2
          ParentCtl3D = False
          TabOrder = 0
        end
        object edValorIss: TRxDBCalcEdit
          Left = 128
          Top = 56
          Width = 89
          Height = 21
          DataField = 'NF_VALORISS'
          DataSource = DSNotaFiscal
          Ctl3D = False
          DisplayFormat = '0.,00'
          NumGlyphs = 2
          ParentCtl3D = False
          TabOrder = 2
        end
        object edTotalServico: TRxDBCalcEdit
          Left = 128
          Top = 80
          Width = 89
          Height = 21
          DataField = 'NF_VALORFINALSERVICO'
          DataSource = DSNotaFiscal
          Ctl3D = False
          DisplayFormat = '0.,00'
          NumGlyphs = 2
          ParentCtl3D = False
          TabOrder = 3
        end
        object edValorICMS: TRxDBCalcEdit
          Left = 400
          Top = 32
          Width = 89
          Height = 21
          DataField = 'NF_VALORICMSNORM'
          DataSource = DSNotaFiscal
          Ctl3D = False
          DisplayFormat = '0.,00'
          NumGlyphs = 2
          ParentCtl3D = False
          TabOrder = 5
        end
        object edBaseICMSSubs: TRxDBCalcEdit
          Left = 400
          Top = 56
          Width = 89
          Height = 21
          DataField = 'NF_BASEICMSSUB'
          DataSource = DSNotaFiscal
          Ctl3D = False
          DisplayFormat = '0.,00'
          NumGlyphs = 2
          ParentCtl3D = False
          TabOrder = 6
        end
        object edValorICMSSubs: TRxDBCalcEdit
          Left = 400
          Top = 80
          Width = 89
          Height = 21
          DataField = 'NF_VALORICMSSUB'
          DataSource = DSNotaFiscal
          Ctl3D = False
          DisplayFormat = '0.,00'
          NumGlyphs = 2
          ParentCtl3D = False
          TabOrder = 7
        end
        object edValorTotalProduto: TRxDBCalcEdit
          Left = 400
          Top = 104
          Width = 89
          Height = 21
          DataField = 'NF_VALORFINALPRODUTO'
          DataSource = DSNotaFiscal
          Ctl3D = False
          DisplayFormat = '0.,00'
          NumGlyphs = 2
          ParentCtl3D = False
          TabOrder = 8
        end
        object edValorFrete: TRxDBCalcEdit
          Left = 128
          Top = 120
          Width = 89
          Height = 21
          DataField = 'NF_VALORFRETE'
          DataSource = DSNotaFiscal
          Ctl3D = False
          DisplayFormat = '0.,00'
          NumGlyphs = 2
          ParentCtl3D = False
          TabOrder = 9
        end
        object edValorSeguro: TRxDBCalcEdit
          Left = 128
          Top = 144
          Width = 89
          Height = 21
          DataField = 'NF_VALORSEGURO'
          DataSource = DSNotaFiscal
          Ctl3D = False
          DisplayFormat = '0.,00'
          NumGlyphs = 2
          ParentCtl3D = False
          TabOrder = 10
        end
        object edAliquotaIss: TDBEdit
          Left = 168
          Top = 32
          Width = 49
          Height = 19
          Ctl3D = False
          DataField = 'NF_PERCISS'
          DataSource = DSNotaFiscal
          ParentCtl3D = False
          TabOrder = 1
          OnExit = edAliquotaIssExit
        end
        object edValorIpi: TRxDBCalcEdit
          Left = 128
          Top = 168
          Width = 89
          Height = 21
          DataField = 'NF_VALORIPI'
          DataSource = DSNotaFiscal
          Ctl3D = False
          DisplayFormat = '0.,00'
          NumGlyphs = 2
          ParentCtl3D = False
          TabOrder = 11
        end
        object edValorFinalNota: TRxDBCalcEdit
          Left = 392
          Top = 232
          Width = 89
          Height = 21
          DataField = 'NF_VALORFINALNOTA'
          DataSource = DSNotaFiscal
          Ctl3D = False
          DisplayFormat = '0.,00'
          NumGlyphs = 2
          ParentCtl3D = False
          TabOrder = 12
        end
      end
      object tabFechamento: TTabSheet
        Caption = 'Fechamento'
        ImageIndex = 4
        object Label15: TLabel
          Left = 8
          Top = 8
          Width = 33
          Height = 13
          Caption = 'Valor 1'
        end
        object Label16: TLabel
          Left = 8
          Top = 56
          Width = 33
          Height = 13
          Caption = 'Valor 2'
        end
        object Label17: TLabel
          Left = 8
          Top = 104
          Width = 33
          Height = 13
          Caption = 'Valor 3'
        end
        object Label18: TLabel
          Left = 120
          Top = 8
          Width = 65
          Height = 13
          Caption = 'Vencimento 1'
        end
        object Label19: TLabel
          Left = 120
          Top = 56
          Width = 65
          Height = 13
          Caption = 'Vencimento 2'
        end
        object Label20: TLabel
          Left = 120
          Top = 104
          Width = 65
          Height = 13
          Caption = 'Vencimento 3'
        end
        object dbeValor2: TRxDBCalcEdit
          Left = 8
          Top = 72
          Width = 99
          Height = 21
          DataField = 'NF_VALORNOTAFISCAL2'
          DataSource = DSNotaFiscal
          Ctl3D = False
          DisplayFormat = '0.,00'
          NumGlyphs = 2
          ParentCtl3D = False
          TabOrder = 2
        end
        object dbeValor3: TRxDBCalcEdit
          Left = 8
          Top = 120
          Width = 99
          Height = 21
          DataField = 'NF_VALORNOTAFISCAL3'
          DataSource = DSNotaFiscal
          Ctl3D = False
          DisplayFormat = '0.,00'
          NumGlyphs = 2
          ParentCtl3D = False
          TabOrder = 4
        end
        object dbeVencto3: TDBDateEdit
          Left = 120
          Top = 120
          Width = 97
          Height = 21
          DataField = 'NF_DATAVENCIMENTO3'
          DataSource = DSNotaFiscal
          Ctl3D = False
          NumGlyphs = 2
          ParentCtl3D = False
          TabOrder = 5
        end
        object dbeVencto2: TDBDateEdit
          Left = 120
          Top = 72
          Width = 97
          Height = 21
          DataField = 'NF_DATAVENCIMENTO2'
          DataSource = DSNotaFiscal
          Ctl3D = False
          NumGlyphs = 2
          ParentCtl3D = False
          TabOrder = 3
        end
        object dbeVencto1: TDBDateEdit
          Left = 120
          Top = 24
          Width = 97
          Height = 21
          DataField = 'NF_DATAVENCIMENTO1'
          DataSource = DSNotaFiscal
          Ctl3D = False
          NumGlyphs = 2
          ParentCtl3D = False
          TabOrder = 1
        end
        object dbeValor1: TRxDBCalcEdit
          Left = 8
          Top = 24
          Width = 99
          Height = 21
          DataField = 'NF_VALORNOTAFISCAL1'
          DataSource = DSNotaFiscal
          Ctl3D = False
          DisplayFormat = '0.,00'
          NumGlyphs = 2
          ParentCtl3D = False
          TabOrder = 0
        end
      end
      object tabComplemento: TTabSheet
        Caption = 'Complemento'
        ImageIndex = 5
        object GroupTextoLegal: TGroupBox
          Left = 0
          Top = 2
          Width = 497
          Height = 85
          Caption = ' Texto Legal  '
          Ctl3D = False
          ParentCtl3D = False
          TabOrder = 0
          object DBETextolegal1: TDBEdit
            Left = 8
            Top = 19
            Width = 480
            Height = 19
            DataField = 'NF_TEXTOLEGAL'
            DataSource = DSNotaFiscal
            TabOrder = 0
          end
          object DBETextolegal2: TDBEdit
            Left = 8
            Top = 37
            Width = 480
            Height = 19
            DataField = 'NF_TEXTOLEGAL2'
            DataSource = DSNotaFiscal
            TabOrder = 1
          end
          object DBETextolegal3: TDBEdit
            Left = 8
            Top = 55
            Width = 480
            Height = 19
            DataField = 'NF_OBS4'
            DataSource = DSNotaFiscal
            TabOrder = 2
          end
        end
        object GroupDadosAdd: TGroupBox
          Left = 1
          Top = 92
          Width = 497
          Height = 101
          Caption = '  Dados Adicionais  '
          Ctl3D = False
          ParentCtl3D = False
          TabOrder = 1
          object DBEDadosAdicionais1: TDBEdit
            Left = 8
            Top = 19
            Width = 480
            Height = 19
            DataField = 'NF_DADOSADICONAIS'
            DataSource = DSNotaFiscal
            TabOrder = 0
          end
          object DBEDadosAdicionais2: TDBEdit
            Left = 8
            Top = 37
            Width = 480
            Height = 19
            DataField = 'NF_OBS5'
            DataSource = DSNotaFiscal
            TabOrder = 1
          end
          object DBEDadosAdicionais3: TDBEdit
            Left = 8
            Top = 55
            Width = 480
            Height = 19
            DataField = 'NF_OBS6'
            DataSource = DSNotaFiscal
            TabOrder = 2
          end
          object DBEDadosAdicionais4: TDBEdit
            Left = 8
            Top = 73
            Width = 480
            Height = 19
            DataField = 'NF_OBS7'
            DataSource = DSNotaFiscal
            TabOrder = 3
          end
        end
      end
    end
  end
  object DSNotaFiscal: TDataSource
    DataSet = QNotaFiscal
    OnStateChange = DSNotaFiscalStateChange
    OnDataChange = DSNotaFiscalDataChange
    Left = 96
    Top = 312
  end
  object DSEmpresa: TDataSource
    DataSet = QEmpresa
    Left = 296
    Top = 496
  end
  object DSPedidoVenda: TDataSource
    DataSet = QPedidoVenda
    Left = 528
    Top = 448
  end
  object DSCliente: TDataSource
    DataSet = QCliente
    Left = 192
    Top = 464
  end
  object QEmpresa: TQuery
    DatabaseName = 'base'
    SQL.Strings = (
      'SELECT * FROM EMPRESA')
    Left = 240
    Top = 328
  end
  object QCliente: TQuery
    DatabaseName = 'base'
    SQL.Strings = (
      'select * from cliente')
    Left = 464
    Top = 528
  end
  object QPedidoVenda: TQuery
    DatabaseName = 'base'
    SQL.Strings = (
      'select * from pedidovenda')
    Left = 256
    Top = 216
  end
  object QTipoVenda: TQuery
    DatabaseName = 'base'
    SQL.Strings = (
      'SELECT * FROM TIPOVENDA')
    Left = 152
    Top = 232
  end
  object QProduto: TQuery
    DatabaseName = 'base'
    SQL.Strings = (
      'select * from produto')
    Left = 97
    Top = 436
  end
  object DSListaProduto: TDataSource
    DataSet = QProduto
    Left = 256
    Top = 424
  end
  object QNotaFiscal: TQuery
    Active = True
    DatabaseName = 'base'
    RequestLive = True
    SQL.Strings = (
      'Select * from NotaFiscalVenda'
      'where'
      'notafiscalvenda.nf_codigo > 44257'
      'order by NF_codigo'
      '')
    Left = 72
    Top = 224
    object QNotaFiscalNF_CODIGO: TIntegerField
      FieldName = 'NF_CODIGO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_CODIGO'
    end
    object QNotaFiscalNF_SITUACAO: TIntegerField
      FieldName = 'NF_SITUACAO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_SITUACAO'
    end
    object QNotaFiscalNF_NUMERONF: TIntegerField
      FieldName = 'NF_NUMERONF'
      Origin = 'BASE.NOTAFISCALVENDA.NF_NUMERONF'
    end
    object QNotaFiscalNF_SERIENF: TStringField
      FieldName = 'NF_SERIENF'
      Origin = 'BASE.NOTAFISCALVENDA.NF_SERIENF'
      Size = 3
    end
    object QNotaFiscalNF_NUMEROSELO: TIntegerField
      FieldName = 'NF_NUMEROSELO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_NUMEROSELO'
    end
    object QNotaFiscalNF_SERIESELO: TStringField
      FieldName = 'NF_SERIESELO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_SERIESELO'
      Size = 2
    end
    object QNotaFiscalNF_DATAEMISSAO: TDateTimeField
      FieldName = 'NF_DATAEMISSAO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_DATAEMISSAO'
    end
    object QNotaFiscalNF_TIPOVENDA: TIntegerField
      FieldName = 'NF_TIPOVENDA'
      Origin = 'BASE.NOTAFISCALVENDA.NF_TIPOVENDA'
    end
    object QNotaFiscalNF_TIPO: TIntegerField
      FieldName = 'NF_TIPO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_TIPO'
    end
    object QNotaFiscalNF_PEDIDOVENDA: TIntegerField
      FieldName = 'NF_PEDIDOVENDA'
      Origin = 'BASE.NOTAFISCALVENDA.NF_PEDIDOVENDA'
    end
    object QNotaFiscalNF_ROMANEIO: TIntegerField
      FieldName = 'NF_ROMANEIO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_ROMANEIO'
    end
    object QNotaFiscalNF_CLIENTE: TIntegerField
      FieldName = 'NF_CLIENTE'
      Origin = 'BASE.NOTAFISCALVENDA.NF_CLIENTE'
    end
    object QNotaFiscalNF_VENDEDOR: TIntegerField
      FieldName = 'NF_VENDEDOR'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VENDEDOR'
    end
    object QNotaFiscalNF_PERCCOMISSAO: TFloatField
      FieldName = 'NF_PERCCOMISSAO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_PERCCOMISSAO'
    end
    object QNotaFiscalNF_CFOPNF: TIntegerField
      FieldName = 'NF_CFOPNF'
      Origin = 'BASE.NOTAFISCALVENDA.NF_CFOPNF'
    end
    object QNotaFiscalNF_VALORSERVICO: TFloatField
      FieldName = 'NF_VALORSERVICO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORSERVICO'
    end
    object QNotaFiscalNF_VALORDESCONTOSERVICO: TFloatField
      FieldName = 'NF_VALORDESCONTOSERVICO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORDESCONTOSERVICO'
    end
    object QNotaFiscalNF_VALORFINALSERVICO: TFloatField
      FieldName = 'NF_VALORFINALSERVICO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORFINALSERVICO'
    end
    object QNotaFiscalNF_VALORPRODUTO: TFloatField
      FieldName = 'NF_VALORPRODUTO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORPRODUTO'
    end
    object QNotaFiscalNF_VALORDESCONTOPRODUTO: TFloatField
      FieldName = 'NF_VALORDESCONTOPRODUTO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORDESCONTOPRODUTO'
    end
    object QNotaFiscalNF_VALORFINALPRODUTO: TFloatField
      FieldName = 'NF_VALORFINALPRODUTO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORFINALPRODUTO'
    end
    object QNotaFiscalNF_PERCISS: TFloatField
      FieldName = 'NF_PERCISS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_PERCISS'
    end
    object QNotaFiscalNF_PERCIRRF: TFloatField
      FieldName = 'NF_PERCIRRF'
      Origin = 'BASE.NOTAFISCALVENDA.NF_PERCIRRF'
    end
    object QNotaFiscalNF_PERCINSS: TFloatField
      FieldName = 'NF_PERCINSS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_PERCINSS'
    end
    object QNotaFiscalNF_VALORFRETE: TFloatField
      FieldName = 'NF_VALORFRETE'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORFRETE'
    end
    object QNotaFiscalNF_VALORSEGURO: TFloatField
      FieldName = 'NF_VALORSEGURO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORSEGURO'
    end
    object QNotaFiscalNF_VALOROUTROS: TFloatField
      FieldName = 'NF_VALOROUTROS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALOROUTROS'
    end
    object QNotaFiscalNF_VALORIPI: TFloatField
      FieldName = 'NF_VALORIPI'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORIPI'
    end
    object QNotaFiscalNF_VALORFINALNOTA: TFloatField
      FieldName = 'NF_VALORFINALNOTA'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORFINALNOTA'
    end
    object QNotaFiscalNF_BASEICMSNORM: TFloatField
      FieldName = 'NF_BASEICMSNORM'
      Origin = 'BASE.NOTAFISCALVENDA.NF_BASEICMSNORM'
    end
    object QNotaFiscalNF_VALORICMSNORM: TFloatField
      FieldName = 'NF_VALORICMSNORM'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORICMSNORM'
    end
    object QNotaFiscalNF_BASEICMSSUB: TFloatField
      FieldName = 'NF_BASEICMSSUB'
      Origin = 'BASE.NOTAFISCALVENDA.NF_BASEICMSSUB'
    end
    object QNotaFiscalNF_VALORICMSSUB: TFloatField
      FieldName = 'NF_VALORICMSSUB'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORICMSSUB'
    end
    object QNotaFiscalNF_TRANSPORTADORA: TIntegerField
      FieldName = 'NF_TRANSPORTADORA'
      Origin = 'BASE.NOTAFISCALVENDA.NF_TRANSPORTADORA'
    end
    object QNotaFiscalNF_FRETE: TIntegerField
      FieldName = 'NF_FRETE'
      Origin = 'BASE.NOTAFISCALVENDA.NF_FRETE'
    end
    object QNotaFiscalNF_PLACA: TStringField
      FieldName = 'NF_PLACA'
      Origin = 'BASE.NOTAFISCALVENDA.NF_PLACA'
      Size = 10
    end
    object QNotaFiscalNF_PLACAUF: TStringField
      FieldName = 'NF_PLACAUF'
      Origin = 'BASE.NOTAFISCALVENDA.NF_PLACAUF'
      Size = 2
    end
    object QNotaFiscalNF_QUANTIDADEVOLUME: TStringField
      FieldName = 'NF_QUANTIDADEVOLUME'
      Origin = 'BASE.NOTAFISCALVENDA.NF_QUANTIDADEVOLUME'
      Size = 10
    end
    object QNotaFiscalNF_ESPECIEVOLUME: TStringField
      FieldName = 'NF_ESPECIEVOLUME'
      Origin = 'BASE.NOTAFISCALVENDA.NF_ESPECIEVOLUME'
      Size = 10
    end
    object QNotaFiscalNF_MARCA: TStringField
      FieldName = 'NF_MARCA'
      Origin = 'BASE.NOTAFISCALVENDA.NF_MARCA'
      Size = 10
    end
    object QNotaFiscalNF_NUMERO: TStringField
      FieldName = 'NF_NUMERO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_NUMERO'
      Size = 10
    end
    object QNotaFiscalNF_PESOBRUTO: TFloatField
      FieldName = 'NF_PESOBRUTO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_PESOBRUTO'
    end
    object QNotaFiscalNF_PESOLIQUIDO: TFloatField
      FieldName = 'NF_PESOLIQUIDO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_PESOLIQUIDO'
    end
    object QNotaFiscalNF_DADOSADICONAIS: TStringField
      FieldName = 'NF_DADOSADICONAIS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_DADOSADICONAIS'
      Size = 203
    end
    object QNotaFiscalNF_TEXTOLEGAL: TStringField
      FieldName = 'NF_TEXTOLEGAL'
      Origin = 'BASE.NOTAFISCALVENDA.NF_TEXTOLEGAL'
      Size = 203
    end
    object QNotaFiscalUSUARIO: TStringField
      FieldName = 'USUARIO'
      Origin = 'BASE.NOTAFISCALVENDA.USUARIO'
      Size = 10
    end
    object QNotaFiscalDATAMODIFICACAO: TDateTimeField
      FieldName = 'DATAMODIFICACAO'
      Origin = 'BASE.NOTAFISCALVENDA.DATAMODIFICACAO'
    end
    object QNotaFiscalCODIGOEMPRESA: TIntegerField
      FieldName = 'CODIGOEMPRESA'
      Origin = 'BASE.NOTAFISCALVENDA.CODIGOEMPRESA'
    end
    object QNotaFiscalNF_CANCELAMENTO: TStringField
      FieldName = 'NF_CANCELAMENTO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_CANCELAMENTO'
      Size = 252
    end
    object QNotaFiscalNF_PERCPIS: TFloatField
      FieldName = 'NF_PERCPIS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_PERCPIS'
    end
    object QNotaFiscalNF_PERCCOFINS: TFloatField
      FieldName = 'NF_PERCCOFINS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_PERCCOFINS'
    end
    object QNotaFiscalNF_PERCCSLL: TFloatField
      FieldName = 'NF_PERCCSLL'
      Origin = 'BASE.NOTAFISCALVENDA.NF_PERCCSLL'
    end
    object QNotaFiscalNF_DATAVENCIMENTO: TDateTimeField
      FieldName = 'NF_DATAVENCIMENTO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_DATAVENCIMENTO'
    end
    object QNotaFiscalNF_RETEMISS: TSmallintField
      FieldName = 'NF_RETEMISS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_RETEMISS'
    end
    object QNotaFiscalNF_OBS: TStringField
      FieldName = 'NF_OBS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_OBS'
      Size = 200
    end
    object QNotaFiscalNF_ABATERETENCAO: TSmallintField
      FieldName = 'NF_ABATERETENCAO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_ABATERETENCAO'
    end
    object QNotaFiscalNF_FORMAPAGAMENTO: TStringField
      FieldName = 'NF_FORMAPAGAMENTO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_FORMAPAGAMENTO'
      Size = 40
    end
    object QNotaFiscalNF_VALORNOTAFISCAL: TFloatField
      FieldName = 'NF_VALORNOTAFISCAL'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORNOTAFISCAL'
    end
    object QNotaFiscalNF_VALORIRRF: TFloatField
      FieldName = 'NF_VALORIRRF'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORIRRF'
    end
    object QNotaFiscalNF_VALORPIS: TFloatField
      FieldName = 'NF_VALORPIS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORPIS'
    end
    object QNotaFiscalNF_VALORCOFINS: TFloatField
      FieldName = 'NF_VALORCOFINS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORCOFINS'
    end
    object QNotaFiscalNF_VALORCSLL: TFloatField
      FieldName = 'NF_VALORCSLL'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORCSLL'
    end
    object QNotaFiscalNF_VALORINSS: TFloatField
      FieldName = 'NF_VALORINSS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORINSS'
    end
    object QNotaFiscalNF_VALORISS: TFloatField
      FieldName = 'NF_VALORISS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORISS'
    end
    object QNotaFiscalNF_RETENCAO: TFloatField
      FieldName = 'NF_RETENCAO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_RETENCAO'
    end
    object QNotaFiscalNF_COBRANCAPROGRAMADA: TIntegerField
      FieldName = 'NF_COBRANCAPROGRAMADA'
      Origin = 'BASE.NOTAFISCALVENDA.NF_COBRANCAPROGRAMADA'
    end
    object QNotaFiscalNF_MESANOCOBRANCAPROGRAMADA: TStringField
      FieldName = 'NF_MESANOCOBRANCAPROGRAMADA'
      Origin = 'BASE.NOTAFISCALVENDA.NF_MESANOCOBRANCAPROGRAMADA'
    end
    object QNotaFiscalNF_OBS1: TStringField
      FieldName = 'NF_OBS1'
      Origin = 'BASE.NOTAFISCALVENDA.NF_OBS1'
      Size = 252
    end
    object QNotaFiscalNF_OBS2: TStringField
      FieldName = 'NF_OBS2'
      Origin = 'BASE.NOTAFISCALVENDA.NF_OBS2'
      Size = 252
    end
    object QNotaFiscalNF_OBS3: TStringField
      FieldName = 'NF_OBS3'
      Origin = 'BASE.NOTAFISCALVENDA.NF_OBS3'
      Size = 252
    end
    object QNotaFiscalNF_OBS4: TStringField
      FieldName = 'NF_OBS4'
      Origin = 'BASE.NOTAFISCALVENDA.NF_OBS4'
      Size = 252
    end
    object QNotaFiscalNF_OBS5: TStringField
      FieldName = 'NF_OBS5'
      Origin = 'BASE.NOTAFISCALVENDA.NF_OBS5'
      Size = 252
    end
    object QNotaFiscalNF_VALORNOTAFISCAL2: TFloatField
      FieldName = 'NF_VALORNOTAFISCAL2'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORNOTAFISCAL2'
    end
    object QNotaFiscalNF_VALORNOTAFISCAL3: TFloatField
      FieldName = 'NF_VALORNOTAFISCAL3'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORNOTAFISCAL3'
    end
    object QNotaFiscalNF_DATAVENCIMENTO2: TDateTimeField
      FieldName = 'NF_DATAVENCIMENTO2'
      Origin = 'BASE.NOTAFISCALVENDA.NF_DATAVENCIMENTO2'
    end
    object QNotaFiscalNF_DATAVENCIMENTO3: TDateTimeField
      FieldName = 'NF_DATAVENCIMENTO3'
      Origin = 'BASE.NOTAFISCALVENDA.NF_DATAVENCIMENTO3'
    end
    object QNotaFiscalNF_VALORNOTAFISCAL1: TFloatField
      FieldName = 'NF_VALORNOTAFISCAL1'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORNOTAFISCAL1'
    end
    object QNotaFiscalNF_DATAVENCIMENTO1: TDateTimeField
      FieldName = 'NF_DATAVENCIMENTO1'
      Origin = 'BASE.NOTAFISCALVENDA.NF_DATAVENCIMENTO1'
    end
    object QNotaFiscalNF_TEXTOLEGAL2: TStringField
      FieldName = 'NF_TEXTOLEGAL2'
      Origin = 'BASE.NOTAFISCALVENDA.NF_TEXTOLEGAL2'
      Size = 203
    end
    object QNotaFiscalNF_DATACANCELAMENTO: TDateTimeField
      FieldName = 'NF_DATACANCELAMENTO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_DATACANCELAMENTO'
    end
    object QNotaFiscalNF_USUARIOCANCELAMENTO: TStringField
      FieldName = 'NF_USUARIOCANCELAMENTO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_USUARIOCANCELAMENTO'
    end
    object QNotaFiscalNF_OBS6: TStringField
      FieldName = 'NF_OBS6'
      Origin = 'BASE.NOTAFISCALVENDA.NF_OBS6'
      Size = 252
    end
    object QNotaFiscalNF_OBS7: TStringField
      FieldName = 'NF_OBS7'
      Origin = 'BASE.NOTAFISCALVENDA.NF_OBS7'
      Size = 252
    end
    object QNotaFiscalNF_OBS8: TStringField
      FieldName = 'NF_OBS8'
      Origin = 'BASE.NOTAFISCALVENDA.NF_OBS8'
      Size = 252
    end
    object QNotaFiscalNF_OBS9: TStringField
      FieldName = 'NF_OBS9'
      Origin = 'BASE.NOTAFISCALVENDA.NF_OBS9'
      Size = 252
    end
    object QNotaFiscalNF_OBS10: TStringField
      FieldName = 'NF_OBS10'
      Origin = 'BASE.NOTAFISCALVENDA.NF_OBS10'
      Size = 252
    end
    object QNotaFiscalNF_RETEMINSS: TSmallintField
      FieldName = 'NF_RETEMINSS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_RETEMINSS'
    end
    object QNotaFiscalNF_RETEMIRRF: TSmallintField
      FieldName = 'NF_RETEMIRRF'
      Origin = 'BASE.NOTAFISCALVENDA.NF_RETEMIRRF'
    end
    object QNotaFiscalNF_RETEMPIS: TSmallintField
      FieldName = 'NF_RETEMPIS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_RETEMPIS'
    end
    object QNotaFiscalNF_RETEMCOFINS: TSmallintField
      FieldName = 'NF_RETEMCOFINS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_RETEMCOFINS'
    end
    object QNotaFiscalNF_RETEMCSLL: TSmallintField
      FieldName = 'NF_RETEMCSLL'
      Origin = 'BASE.NOTAFISCALVENDA.NF_RETEMCSLL'
    end
    object QNotaFiscalNF_MUNICIPIO: TIntegerField
      FieldName = 'NF_MUNICIPIO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_MUNICIPIO'
    end
    object QNotaFiscalNF_PERCENTUAL_DESCONTO_PRODUTO: TFloatField
      FieldName = 'NF_PERCENTUAL_DESCONTO_PRODUTO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_PERCENTUAL_DESCONTO_PRODUTO'
    end
    object QNotaFiscalNF_PERCENTUAL_DESCONTO_SERVICO: TFloatField
      FieldName = 'NF_PERCENTUAL_DESCONTO_SERVICO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_PERCENTUAL_DESCONTO_SERVICO'
    end
    object QNotaFiscalNF_COBRANCA: TIntegerField
      FieldName = 'NF_COBRANCA'
      Origin = 'BASE.NOTAFISCALVENDA.NF_COBRANCA'
    end
    object QNotaFiscalNF_VALORNOTAFISCAL4: TFloatField
      FieldName = 'NF_VALORNOTAFISCAL4'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORNOTAFISCAL4'
    end
    object QNotaFiscalNF_VALORNOTAFISCAL5: TFloatField
      FieldName = 'NF_VALORNOTAFISCAL5'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORNOTAFISCAL5'
    end
    object QNotaFiscalNF_VALORNOTAFISCAL6: TFloatField
      FieldName = 'NF_VALORNOTAFISCAL6'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORNOTAFISCAL6'
    end
    object QNotaFiscalNF_DATAVENCIMENTO4: TDateTimeField
      FieldName = 'NF_DATAVENCIMENTO4'
      Origin = 'BASE.NOTAFISCALVENDA.NF_DATAVENCIMENTO4'
    end
    object QNotaFiscalNF_DATAVENCIMENTO5: TDateTimeField
      FieldName = 'NF_DATAVENCIMENTO5'
      Origin = 'BASE.NOTAFISCALVENDA.NF_DATAVENCIMENTO5'
    end
    object QNotaFiscalNF_DATAVENCIMENTO6: TDateTimeField
      FieldName = 'NF_DATAVENCIMENTO6'
      Origin = 'BASE.NOTAFISCALVENDA.NF_DATAVENCIMENTO6'
    end
    object QNotaFiscalNF_LOCAL_ESTOQUE: TIntegerField
      FieldName = 'NF_LOCAL_ESTOQUE'
      Origin = 'BASE.NOTAFISCALVENDA.NF_LOCAL_ESTOQUE'
    end
    object QNotaFiscalNF_DETALHE_CLASS_FISCAL: TStringField
      FieldName = 'NF_DETALHE_CLASS_FISCAL'
      Origin = 'BASE.NOTAFISCALVENDA.NF_DETALHE_CLASS_FISCAL'
      Size = 255
    end
    object QNotaFiscalNF_ORIGEM: TStringField
      FieldName = 'NF_ORIGEM'
      Origin = 'BASE.NOTAFISCALVENDA.NF_ORIGEM'
      Size = 2
    end
    object QNotaFiscalNF_CLIENTE_DESC: TStringField
      FieldName = 'NF_CLIENTE_DESC'
      Origin = 'BASE.NOTAFISCALVENDA.NF_CLIENTE_DESC'
      Size = 80
    end
  end
  object QAux: TQuery
    DatabaseName = 'base'
    DataSource = DSNotaFiscal
    SQL.Strings = (
      'SELECT '
      '  ITENSNOTAFISCALVENDA.ITENSNF_CODIGO,'
      '  ITENSNOTAFISCALVENDA.ITENSNF_PRODUTO AS CODIGO,'
      '  PRODUTO.PROD_DESCRICAOSAI AS DESCRICAO,'
      '  ITENSNOTAFISCALVENDA.ITENSNF_SITUACAOTRIBUTARIA AS SIT_TRIB,'
      '  PRODUTO.PROD_UNIDSAIDA AS UNIDADE,'
      '  PRODUTO.PROD_TIPO,'
      '  ITENSNOTAFISCALVENDA.ITENSNF_QUANTIDADE AS QTD,'
      '  ITENSNOTAFISCALVENDA.ITENSNF_VALORUNITARIO AS VALOR_UNI,'
      '  ITENSNOTAFISCALVENDA.ITENSNF_VALORTOTAL AS VALOR_TOT,'
      '  ITENSNOTAFISCALVENDA.ITENSNF_PERCICMS AS ICMS,'
      '  ITENSNOTAFISCALVENDA.ITENSNF_SERVICO'
      'FROM'
      ' PRODUTO'
      
        ' INNER JOIN ITENSNOTAFISCALVENDA ON (PRODUTO.PROD_CODIGO=ITENSNO' +
        'TAFISCALVENDA.ITENSNF_PRODUTO)'
      
        'WHERE (ITENSNF_NOTAFISCAL =:NF_CODIGO) AND (PRODUTO.PROD_TIPO = ' +
        '0)')
    Left = 544
    Top = 360
    ParamData = <
      item
        DataType = ftInteger
        Name = 'NF_CODIGO'
        ParamType = ptUnknown
        Size = 4
      end>
    object QAuxCODIGO: TIntegerField
      FieldName = 'CODIGO'
      Origin = 'BASE.ITENSNOTAFISCALVENDA.ITENSNF_PRODUTO'
    end
    object QAuxDESCRICAO: TStringField
      FieldName = 'DESCRICAO'
      Origin = 'BASE.PRODUTO.PROD_DESCRICAOSAI'
      Size = 60
    end
    object QAuxSIT_TRIB: TSmallintField
      FieldName = 'SIT_TRIB'
      Origin = 'BASE.ITENSNOTAFISCALVENDA.ITENSNF_SITUACAOTRIBUTARIA'
    end
    object QAuxUNIDADE: TStringField
      FieldName = 'UNIDADE'
      Origin = 'BASE.PRODUTO.PROD_UNIDSAIDA'
      Size = 5
    end
    object QAuxQTD: TFloatField
      FieldName = 'QTD'
      Origin = 'BASE.ITENSNOTAFISCALVENDA.ITENSNF_QUANTIDADE'
    end
    object QAuxVALOR_UNI: TFloatField
      FieldName = 'VALOR_UNI'
      Origin = 'BASE.ITENSNOTAFISCALVENDA.ITENSNF_VALORUNITARIO'
      DisplayFormat = '#,##0.00'
    end
    object QAuxVALOR_TOT: TFloatField
      FieldName = 'VALOR_TOT'
      Origin = 'BASE.ITENSNOTAFISCALVENDA.ITENSNF_VALORTOTAL'
      DisplayFormat = '#,##0.00'
    end
    object QAuxICMS: TFloatField
      FieldName = 'ICMS'
      Origin = 'BASE.ITENSNOTAFISCALVENDA.ITENSNF_PERCICMS'
    end
    object QAuxITENSNF_CODIGO: TIntegerField
      FieldName = 'ITENSNF_CODIGO'
      Origin = 'BASE.ITENSNOTAFISCALVENDA.ITENSNF_CODIGO'
    end
    object QAuxPROD_TIPO: TSmallintField
      FieldName = 'PROD_TIPO'
      Origin = 'BASE.PRODUTO.PROD_TIPO'
    end
  end
  object DSItensNotaFiscal: TDataSource
    DataSet = QAux
    Left = 416
    Top = 464
  end
  object QItensNotaFiscal: TQuery
    DatabaseName = 'base'
    DataSource = DSNotaFiscal
    RequestLive = True
    SQL.Strings = (
      'select * from itensnotafiscalvenda')
    Left = 648
    Top = 496
    object QItensNotaFiscalITENSNF_CODIGO: TIntegerField
      FieldName = 'ITENSNF_CODIGO'
      Origin = 'BASE.ITENSNOTAFISCALVENDA.ITENSNF_CODIGO'
    end
    object QItensNotaFiscalITENSNF_NOTAFISCAL: TIntegerField
      FieldName = 'ITENSNF_NOTAFISCAL'
      Origin = 'BASE.ITENSNOTAFISCALVENDA.ITENSNF_NOTAFISCAL'
    end
    object QItensNotaFiscalITENSNF_PEDIDOVENDA: TIntegerField
      FieldName = 'ITENSNF_PEDIDOVENDA'
      Origin = 'BASE.ITENSNOTAFISCALVENDA.ITENSNF_PEDIDOVENDA'
    end
    object QItensNotaFiscalITENSNF_ITEMPEDIDOVENDA: TIntegerField
      FieldName = 'ITENSNF_ITEMPEDIDOVENDA'
      Origin = 'BASE.ITENSNOTAFISCALVENDA.ITENSNF_ITEMPEDIDOVENDA'
    end
    object QItensNotaFiscalITENSNF_LOCAL: TIntegerField
      FieldName = 'ITENSNF_LOCAL'
      Origin = 'BASE.ITENSNOTAFISCALVENDA.ITENSNF_LOCAL'
    end
    object QItensNotaFiscalITENSNF_PRODUTO: TIntegerField
      FieldName = 'ITENSNF_PRODUTO'
      Origin = 'BASE.ITENSNOTAFISCALVENDA.ITENSNF_PRODUTO'
    end
    object QItensNotaFiscalITENSNF_COMPLEMENTOPRODUTO: TMemoField
      FieldName = 'ITENSNF_COMPLEMENTOPRODUTO'
      Origin = 'BASE.ITENSNOTAFISCALVENDA.ITENSNF_COMPLEMENTOPRODUTO'
      BlobType = ftMemo
      Size = 257
    end
    object QItensNotaFiscalITENSNF_CLASSFISCAL2: TStringField
      FieldName = 'ITENSNF_CLASSFISCAL2'
      Origin = 'BASE.ITENSNOTAFISCALVENDA.ITENSNF_CLASSFISCAL2'
      Size = 2
    end
    object QItensNotaFiscalITENSNF_CLASSFISCAL9: TStringField
      FieldName = 'ITENSNF_CLASSFISCAL9'
      Origin = 'BASE.ITENSNOTAFISCALVENDA.ITENSNF_CLASSFISCAL9'
      Size = 9
    end
    object QItensNotaFiscalITENSNF_SITUACAOTRIBUTARIA: TSmallintField
      FieldName = 'ITENSNF_SITUACAOTRIBUTARIA'
      Origin = 'BASE.ITENSNOTAFISCALVENDA.ITENSNF_SITUACAOTRIBUTARIA'
    end
    object QItensNotaFiscalITENSNF_QUANTIDADE: TFloatField
      FieldName = 'ITENSNF_QUANTIDADE'
      Origin = 'BASE.ITENSNOTAFISCALVENDA.ITENSNF_QUANTIDADE'
    end
    object QItensNotaFiscalITENSNF_VALORUNITARIO: TFloatField
      FieldName = 'ITENSNF_VALORUNITARIO'
      Origin = 'BASE.ITENSNOTAFISCALVENDA.ITENSNF_VALORUNITARIO'
    end
    object QItensNotaFiscalITENSNF_VALORTOTAL: TFloatField
      FieldName = 'ITENSNF_VALORTOTAL'
      Origin = 'BASE.ITENSNOTAFISCALVENDA.ITENSNF_VALORTOTAL'
    end
    object QItensNotaFiscalITENSNF_PERCICMS: TFloatField
      FieldName = 'ITENSNF_PERCICMS'
      Origin = 'BASE.ITENSNOTAFISCALVENDA.ITENSNF_PERCICMS'
    end
    object QItensNotaFiscalITENSNF_PERCREDBASEICMS: TFloatField
      FieldName = 'ITENSNF_PERCREDBASEICMS'
      Origin = 'BASE.ITENSNOTAFISCALVENDA.ITENSNF_PERCREDBASEICMS'
    end
    object QItensNotaFiscalITENSNF_PERCIPI: TFloatField
      FieldName = 'ITENSNF_PERCIPI'
      Origin = 'BASE.ITENSNOTAFISCALVENDA.ITENSNF_PERCIPI'
    end
    object QItensNotaFiscalITENSNF_PERCREDBASEIPI: TFloatField
      FieldName = 'ITENSNF_PERCREDBASEIPI'
      Origin = 'BASE.ITENSNOTAFISCALVENDA.ITENSNF_PERCREDBASEIPI'
    end
    object QItensNotaFiscalITENSNF_VALORIPI: TFloatField
      FieldName = 'ITENSNF_VALORIPI'
      Origin = 'BASE.ITENSNOTAFISCALVENDA.ITENSNF_VALORIPI'
    end
    object QItensNotaFiscalITENSNF_PESOBRUTO: TFloatField
      FieldName = 'ITENSNF_PESOBRUTO'
      Origin = 'BASE.ITENSNOTAFISCALVENDA.ITENSNF_PESOBRUTO'
    end
    object QItensNotaFiscalITENSNF_PESOLIQUIDO: TFloatField
      FieldName = 'ITENSNF_PESOLIQUIDO'
      Origin = 'BASE.ITENSNOTAFISCALVENDA.ITENSNF_PESOLIQUIDO'
    end
    object QItensNotaFiscalITENSNF_PERCBASESERVICOINSS: TFloatField
      FieldName = 'ITENSNF_PERCBASESERVICOINSS'
      Origin = 'BASE.ITENSNOTAFISCALVENDA.ITENSNF_PERCBASESERVICOINSS'
    end
    object QItensNotaFiscalITENSNF_PERCBASESERVICOISS: TFloatField
      FieldName = 'ITENSNF_PERCBASESERVICOISS'
      Origin = 'BASE.ITENSNOTAFISCALVENDA.ITENSNF_PERCBASESERVICOISS'
    end
    object QItensNotaFiscalITENSNF_SERVICO2: TStringField
      FieldName = 'ITENSNF_SERVICO2'
      Origin = 'BASE.ITENSNOTAFISCALVENDA.ITENSNF_SERVICO2'
      Size = 200
    end
    object QItensNotaFiscalITENSNF_SERVICO3: TStringField
      FieldName = 'ITENSNF_SERVICO3'
      Origin = 'BASE.ITENSNOTAFISCALVENDA.ITENSNF_SERVICO3'
      Size = 200
    end
    object QItensNotaFiscalITENSNF_SEQUENCIA_ITEM: TIntegerField
      FieldName = 'ITENSNF_SEQUENCIA_ITEM'
      Origin = 'BASE.ITENSNOTAFISCALVENDA.ITENSNF_SEQUENCIA_ITEM'
    end
    object QItensNotaFiscalITENSNF_MUNICIPIO_SERVICO: TIntegerField
      FieldName = 'ITENSNF_MUNICIPIO_SERVICO'
      Origin = 'BASE.ITENSNOTAFISCALVENDA.ITENSNF_MUNICIPIO_SERVICO'
    end
    object QItensNotaFiscalITENSNF_DESCRICAO_NA_NOTA: TStringField
      FieldName = 'ITENSNF_DESCRICAO_NA_NOTA'
      Origin = 'BASE.ITENSNOTAFISCALVENDA.ITENSNF_DESCRICAO_NA_NOTA'
      Size = 250
    end
    object QItensNotaFiscalITENSNF_PERC_ICMS_SUBS: TFloatField
      FieldName = 'ITENSNF_PERC_ICMS_SUBS'
      Origin = 'BASE.ITENSNOTAFISCALVENDA.ITENSNF_PERC_ICMS_SUBS'
    end
    object QItensNotaFiscalITENSNF_PERC_AGREGACAO_ICMS_SUB: TFloatField
      FieldName = 'ITENSNF_PERC_AGREGACAO_ICMS_SUB'
      Origin = 'BASE.ITENSNOTAFISCALVENDA.ITENSNF_PERC_AGREGACAO_ICMS_SUB'
    end
    object QItensNotaFiscalITENSNF_VALOR_BASE_ICMS_SUBS: TFloatField
      FieldName = 'ITENSNF_VALOR_BASE_ICMS_SUBS'
      Origin = 'BASE.ITENSNOTAFISCALVENDA.ITENSNF_VALOR_BASE_ICMS_SUBS'
    end
    object QItensNotaFiscalITENSNF_VALOR_ICMS_SUBS: TFloatField
      FieldName = 'ITENSNF_VALOR_ICMS_SUBS'
      Origin = 'BASE.ITENSNOTAFISCALVENDA.ITENSNF_VALOR_ICMS_SUBS'
    end
    object QItensNotaFiscalITENSNF_COMPLEMENTOPRODUTO_2: TStringField
      FieldName = 'ITENSNF_COMPLEMENTOPRODUTO_2'
      Origin = 'BASE.ITENSNOTAFISCALVENDA.ITENSNF_COMPLEMENTOPRODUTO_2'
      Size = 255
    end
    object QItensNotaFiscalITENSNF_COMPLEMENTOPRODUTO_3: TStringField
      FieldName = 'ITENSNF_COMPLEMENTOPRODUTO_3'
      Origin = 'BASE.ITENSNOTAFISCALVENDA.ITENSNF_COMPLEMENTOPRODUTO_3'
      Size = 255
    end
    object QItensNotaFiscalITENSNF_COMPLEMENTOPRODUTO_4: TStringField
      FieldName = 'ITENSNF_COMPLEMENTOPRODUTO_4'
      Origin = 'BASE.ITENSNOTAFISCALVENDA.ITENSNF_COMPLEMENTOPRODUTO_4'
      Size = 255
    end
    object QItensNotaFiscalITENSNF_COMPLEMENTOPRODUTO_5: TStringField
      FieldName = 'ITENSNF_COMPLEMENTOPRODUTO_5'
      Origin = 'BASE.ITENSNOTAFISCALVENDA.ITENSNF_COMPLEMENTOPRODUTO_5'
      Size = 255
    end
  end
  object dsItens: TDataSource
    AutoEdit = False
    DataSet = QItensNotaFiscal
    OnStateChange = dsItensStateChange
    Left = 160
    Top = 568
  end
  object QAux2: TQuery
    DatabaseName = 'base'
    Left = 56
    Top = 520
  end
  object dsCFOP: TDataSource
    DataSet = DMFinanceiro.QCFOP
    Left = 328
    Top = 432
  end
  object QryAux: TQuery
    DatabaseName = 'base'
    RequestLive = True
    SQL.Strings = (
      'Select * from NotaFiscalVenda order by NF_codigo'
      '')
    Left = 112
    Top = 216
    object IntegerField1: TIntegerField
      FieldName = 'NF_CODIGO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_CODIGO'
    end
    object IntegerField2: TIntegerField
      FieldName = 'NF_SITUACAO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_SITUACAO'
    end
    object IntegerField3: TIntegerField
      FieldName = 'NF_NUMERONF'
      Origin = 'BASE.NOTAFISCALVENDA.NF_NUMERONF'
    end
    object StringField1: TStringField
      FieldName = 'NF_SERIENF'
      Origin = 'BASE.NOTAFISCALVENDA.NF_SERIENF'
      Size = 3
    end
    object IntegerField4: TIntegerField
      FieldName = 'NF_NUMEROSELO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_NUMEROSELO'
    end
    object StringField2: TStringField
      FieldName = 'NF_SERIESELO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_SERIESELO'
      Size = 2
    end
    object DateTimeField1: TDateTimeField
      FieldName = 'NF_DATAEMISSAO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_DATAEMISSAO'
    end
    object IntegerField5: TIntegerField
      FieldName = 'NF_TIPOVENDA'
      Origin = 'BASE.NOTAFISCALVENDA.NF_TIPOVENDA'
    end
    object IntegerField6: TIntegerField
      FieldName = 'NF_TIPO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_TIPO'
    end
    object IntegerField7: TIntegerField
      FieldName = 'NF_PEDIDOVENDA'
      Origin = 'BASE.NOTAFISCALVENDA.NF_PEDIDOVENDA'
    end
    object IntegerField8: TIntegerField
      FieldName = 'NF_ROMANEIO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_ROMANEIO'
    end
    object IntegerField9: TIntegerField
      FieldName = 'NF_CLIENTE'
      Origin = 'BASE.NOTAFISCALVENDA.NF_CLIENTE'
    end
    object IntegerField10: TIntegerField
      FieldName = 'NF_VENDEDOR'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VENDEDOR'
    end
    object FloatField1: TFloatField
      FieldName = 'NF_PERCCOMISSAO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_PERCCOMISSAO'
    end
    object IntegerField11: TIntegerField
      FieldName = 'NF_CFOPNF'
      Origin = 'BASE.NOTAFISCALVENDA.NF_CFOPNF'
    end
    object FloatField2: TFloatField
      FieldName = 'NF_VALORSERVICO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORSERVICO'
    end
    object FloatField3: TFloatField
      FieldName = 'NF_VALORDESCONTOSERVICO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORDESCONTOSERVICO'
    end
    object FloatField4: TFloatField
      FieldName = 'NF_VALORFINALSERVICO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORFINALSERVICO'
    end
    object FloatField5: TFloatField
      FieldName = 'NF_VALORPRODUTO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORPRODUTO'
    end
    object FloatField6: TFloatField
      FieldName = 'NF_VALORDESCONTOPRODUTO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORDESCONTOPRODUTO'
    end
    object FloatField7: TFloatField
      FieldName = 'NF_VALORFINALPRODUTO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORFINALPRODUTO'
    end
    object FloatField8: TFloatField
      FieldName = 'NF_PERCISS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_PERCISS'
    end
    object FloatField9: TFloatField
      FieldName = 'NF_PERCIRRF'
      Origin = 'BASE.NOTAFISCALVENDA.NF_PERCIRRF'
    end
    object FloatField10: TFloatField
      FieldName = 'NF_PERCINSS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_PERCINSS'
    end
    object FloatField11: TFloatField
      FieldName = 'NF_VALORFRETE'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORFRETE'
    end
    object FloatField12: TFloatField
      FieldName = 'NF_VALORSEGURO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORSEGURO'
    end
    object FloatField13: TFloatField
      FieldName = 'NF_VALOROUTROS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALOROUTROS'
    end
    object FloatField14: TFloatField
      FieldName = 'NF_VALORIPI'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORIPI'
    end
    object FloatField15: TFloatField
      FieldName = 'NF_VALORFINALNOTA'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORFINALNOTA'
    end
    object FloatField16: TFloatField
      FieldName = 'NF_BASEICMSNORM'
      Origin = 'BASE.NOTAFISCALVENDA.NF_BASEICMSNORM'
    end
    object FloatField17: TFloatField
      FieldName = 'NF_VALORICMSNORM'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORICMSNORM'
    end
    object FloatField18: TFloatField
      FieldName = 'NF_BASEICMSSUB'
      Origin = 'BASE.NOTAFISCALVENDA.NF_BASEICMSSUB'
    end
    object FloatField19: TFloatField
      FieldName = 'NF_VALORICMSSUB'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORICMSSUB'
    end
    object IntegerField12: TIntegerField
      FieldName = 'NF_TRANSPORTADORA'
      Origin = 'BASE.NOTAFISCALVENDA.NF_TRANSPORTADORA'
    end
    object IntegerField13: TIntegerField
      FieldName = 'NF_FRETE'
      Origin = 'BASE.NOTAFISCALVENDA.NF_FRETE'
    end
    object StringField3: TStringField
      FieldName = 'NF_PLACA'
      Origin = 'BASE.NOTAFISCALVENDA.NF_PLACA'
      Size = 10
    end
    object StringField4: TStringField
      FieldName = 'NF_PLACAUF'
      Origin = 'BASE.NOTAFISCALVENDA.NF_PLACAUF'
      Size = 2
    end
    object StringField5: TStringField
      FieldName = 'NF_QUANTIDADEVOLUME'
      Origin = 'BASE.NOTAFISCALVENDA.NF_QUANTIDADEVOLUME'
      Size = 10
    end
    object StringField6: TStringField
      FieldName = 'NF_ESPECIEVOLUME'
      Origin = 'BASE.NOTAFISCALVENDA.NF_ESPECIEVOLUME'
      Size = 10
    end
    object StringField7: TStringField
      FieldName = 'NF_MARCA'
      Origin = 'BASE.NOTAFISCALVENDA.NF_MARCA'
      Size = 10
    end
    object StringField8: TStringField
      FieldName = 'NF_NUMERO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_NUMERO'
      Size = 10
    end
    object FloatField20: TFloatField
      FieldName = 'NF_PESOBRUTO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_PESOBRUTO'
    end
    object FloatField21: TFloatField
      FieldName = 'NF_PESOLIQUIDO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_PESOLIQUIDO'
    end
    object StringField9: TStringField
      FieldName = 'NF_DADOSADICONAIS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_DADOSADICONAIS'
      Size = 203
    end
    object StringField10: TStringField
      FieldName = 'NF_TEXTOLEGAL'
      Origin = 'BASE.NOTAFISCALVENDA.NF_TEXTOLEGAL'
      Size = 203
    end
    object StringField11: TStringField
      FieldName = 'USUARIO'
      Origin = 'BASE.NOTAFISCALVENDA.USUARIO'
      Size = 10
    end
    object DateTimeField2: TDateTimeField
      FieldName = 'DATAMODIFICACAO'
      Origin = 'BASE.NOTAFISCALVENDA.DATAMODIFICACAO'
    end
    object IntegerField14: TIntegerField
      FieldName = 'CODIGOEMPRESA'
      Origin = 'BASE.NOTAFISCALVENDA.CODIGOEMPRESA'
    end
    object StringField12: TStringField
      FieldName = 'NF_CANCELAMENTO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_CANCELAMENTO'
      Size = 252
    end
    object FloatField22: TFloatField
      FieldName = 'NF_PERCPIS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_PERCPIS'
    end
    object FloatField23: TFloatField
      FieldName = 'NF_PERCCOFINS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_PERCCOFINS'
    end
    object FloatField24: TFloatField
      FieldName = 'NF_PERCCSLL'
      Origin = 'BASE.NOTAFISCALVENDA.NF_PERCCSLL'
    end
    object DateTimeField3: TDateTimeField
      FieldName = 'NF_DATAVENCIMENTO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_DATAVENCIMENTO'
    end
    object SmallintField1: TSmallintField
      FieldName = 'NF_RETEMISS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_RETEMISS'
    end
    object StringField13: TStringField
      FieldName = 'NF_OBS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_OBS'
      Size = 200
    end
    object SmallintField2: TSmallintField
      FieldName = 'NF_ABATERETENCAO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_ABATERETENCAO'
    end
    object StringField14: TStringField
      FieldName = 'NF_FORMAPAGAMENTO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_FORMAPAGAMENTO'
      Size = 40
    end
    object FloatField25: TFloatField
      FieldName = 'NF_VALORNOTAFISCAL'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORNOTAFISCAL'
    end
    object FloatField26: TFloatField
      FieldName = 'NF_VALORIRRF'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORIRRF'
    end
    object FloatField27: TFloatField
      FieldName = 'NF_VALORPIS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORPIS'
    end
    object FloatField28: TFloatField
      FieldName = 'NF_VALORCOFINS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORCOFINS'
    end
    object FloatField29: TFloatField
      FieldName = 'NF_VALORCSLL'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORCSLL'
    end
    object FloatField30: TFloatField
      FieldName = 'NF_VALORINSS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORINSS'
    end
    object FloatField31: TFloatField
      FieldName = 'NF_VALORISS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORISS'
    end
    object FloatField32: TFloatField
      FieldName = 'NF_RETENCAO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_RETENCAO'
    end
    object IntegerField15: TIntegerField
      FieldName = 'NF_COBRANCAPROGRAMADA'
      Origin = 'BASE.NOTAFISCALVENDA.NF_COBRANCAPROGRAMADA'
    end
    object StringField15: TStringField
      FieldName = 'NF_MESANOCOBRANCAPROGRAMADA'
      Origin = 'BASE.NOTAFISCALVENDA.NF_MESANOCOBRANCAPROGRAMADA'
    end
    object StringField16: TStringField
      FieldName = 'NF_OBS1'
      Origin = 'BASE.NOTAFISCALVENDA.NF_OBS1'
      Size = 252
    end
    object StringField17: TStringField
      FieldName = 'NF_OBS2'
      Origin = 'BASE.NOTAFISCALVENDA.NF_OBS2'
      Size = 252
    end
    object StringField18: TStringField
      FieldName = 'NF_OBS3'
      Origin = 'BASE.NOTAFISCALVENDA.NF_OBS3'
      Size = 252
    end
    object StringField19: TStringField
      FieldName = 'NF_OBS4'
      Origin = 'BASE.NOTAFISCALVENDA.NF_OBS4'
      Size = 252
    end
    object StringField20: TStringField
      FieldName = 'NF_OBS5'
      Origin = 'BASE.NOTAFISCALVENDA.NF_OBS5'
      Size = 252
    end
    object FloatField33: TFloatField
      FieldName = 'NF_VALORNOTAFISCAL2'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORNOTAFISCAL2'
    end
    object FloatField34: TFloatField
      FieldName = 'NF_VALORNOTAFISCAL3'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORNOTAFISCAL3'
    end
    object DateTimeField4: TDateTimeField
      FieldName = 'NF_DATAVENCIMENTO2'
      Origin = 'BASE.NOTAFISCALVENDA.NF_DATAVENCIMENTO2'
    end
    object DateTimeField5: TDateTimeField
      FieldName = 'NF_DATAVENCIMENTO3'
      Origin = 'BASE.NOTAFISCALVENDA.NF_DATAVENCIMENTO3'
    end
    object FloatField35: TFloatField
      FieldName = 'NF_VALORNOTAFISCAL1'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORNOTAFISCAL1'
    end
    object DateTimeField6: TDateTimeField
      FieldName = 'NF_DATAVENCIMENTO1'
      Origin = 'BASE.NOTAFISCALVENDA.NF_DATAVENCIMENTO1'
    end
    object StringField21: TStringField
      FieldName = 'NF_TEXTOLEGAL2'
      Origin = 'BASE.NOTAFISCALVENDA.NF_TEXTOLEGAL2'
      Size = 203
    end
    object DateTimeField7: TDateTimeField
      FieldName = 'NF_DATACANCELAMENTO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_DATACANCELAMENTO'
    end
    object StringField22: TStringField
      FieldName = 'NF_USUARIOCANCELAMENTO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_USUARIOCANCELAMENTO'
    end
    object StringField23: TStringField
      FieldName = 'NF_OBS6'
      Origin = 'BASE.NOTAFISCALVENDA.NF_OBS6'
      Size = 252
    end
    object StringField24: TStringField
      FieldName = 'NF_OBS7'
      Origin = 'BASE.NOTAFISCALVENDA.NF_OBS7'
      Size = 252
    end
    object StringField25: TStringField
      FieldName = 'NF_OBS8'
      Origin = 'BASE.NOTAFISCALVENDA.NF_OBS8'
      Size = 252
    end
    object StringField26: TStringField
      FieldName = 'NF_OBS9'
      Origin = 'BASE.NOTAFISCALVENDA.NF_OBS9'
      Size = 252
    end
    object StringField27: TStringField
      FieldName = 'NF_OBS10'
      Origin = 'BASE.NOTAFISCALVENDA.NF_OBS10'
      Size = 252
    end
    object SmallintField3: TSmallintField
      FieldName = 'NF_RETEMINSS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_RETEMINSS'
    end
    object SmallintField4: TSmallintField
      FieldName = 'NF_RETEMIRRF'
      Origin = 'BASE.NOTAFISCALVENDA.NF_RETEMIRRF'
    end
    object SmallintField5: TSmallintField
      FieldName = 'NF_RETEMPIS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_RETEMPIS'
    end
    object SmallintField6: TSmallintField
      FieldName = 'NF_RETEMCOFINS'
      Origin = 'BASE.NOTAFISCALVENDA.NF_RETEMCOFINS'
    end
    object SmallintField7: TSmallintField
      FieldName = 'NF_RETEMCSLL'
      Origin = 'BASE.NOTAFISCALVENDA.NF_RETEMCSLL'
    end
    object IntegerField16: TIntegerField
      FieldName = 'NF_MUNICIPIO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_MUNICIPIO'
    end
    object FloatField36: TFloatField
      FieldName = 'NF_PERCENTUAL_DESCONTO_PRODUTO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_PERCENTUAL_DESCONTO_PRODUTO'
    end
    object FloatField37: TFloatField
      FieldName = 'NF_PERCENTUAL_DESCONTO_SERVICO'
      Origin = 'BASE.NOTAFISCALVENDA.NF_PERCENTUAL_DESCONTO_SERVICO'
    end
    object IntegerField17: TIntegerField
      FieldName = 'NF_COBRANCA'
      Origin = 'BASE.NOTAFISCALVENDA.NF_COBRANCA'
    end
    object FloatField38: TFloatField
      FieldName = 'NF_VALORNOTAFISCAL4'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORNOTAFISCAL4'
    end
    object FloatField39: TFloatField
      FieldName = 'NF_VALORNOTAFISCAL5'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORNOTAFISCAL5'
    end
    object FloatField40: TFloatField
      FieldName = 'NF_VALORNOTAFISCAL6'
      Origin = 'BASE.NOTAFISCALVENDA.NF_VALORNOTAFISCAL6'
    end
    object DateTimeField8: TDateTimeField
      FieldName = 'NF_DATAVENCIMENTO4'
      Origin = 'BASE.NOTAFISCALVENDA.NF_DATAVENCIMENTO4'
    end
    object DateTimeField9: TDateTimeField
      FieldName = 'NF_DATAVENCIMENTO5'
      Origin = 'BASE.NOTAFISCALVENDA.NF_DATAVENCIMENTO5'
    end
    object DateTimeField10: TDateTimeField
      FieldName = 'NF_DATAVENCIMENTO6'
      Origin = 'BASE.NOTAFISCALVENDA.NF_DATAVENCIMENTO6'
    end
    object IntegerField18: TIntegerField
      FieldName = 'NF_LOCAL_ESTOQUE'
      Origin = 'BASE.NOTAFISCALVENDA.NF_LOCAL_ESTOQUE'
    end
    object StringField28: TStringField
      FieldName = 'NF_DETALHE_CLASS_FISCAL'
      Origin = 'BASE.NOTAFISCALVENDA.NF_DETALHE_CLASS_FISCAL'
      Size = 255
    end
    object StringField29: TStringField
      FieldName = 'NF_ORIGEM'
      Origin = 'BASE.NOTAFISCALVENDA.NF_ORIGEM'
      Size = 2
    end
    object StringField30: TStringField
      FieldName = 'NF_CLIENTE_DESC'
      Origin = 'BASE.NOTAFISCALVENDA.NF_CLIENTE_DESC'
      Size = 80
    end
  end
end
